php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#317978 - 05/11/09 05:43 PM [7.3+] Custom Tag - Vimeo Video
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
Tag - Vimeo (video:vimeo)
Usage -
Code:
[video:vimeo]VideoID[/video]


Code -
Code:
<?php
$export_tags = array (
  0 => 
  array (
    'tag' => 'video:vimeo',
    'descrip' => 'Vimeo Video',
    'prompt' => 'Vimeo URL; eg: http://www.vimeo.com/xxxxxx',
    'regex' => 'http://www.vimeo.com/(.+?)',
    'markup' => '<object width="425" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350"></embed></object>',
  ),
);
?>


Install Instructions - Copy the above custom tag to a notepad document, then import this to your forum's Custom Tag panel (CP -> Tools and Info -> Content Rebuilder -> Custom Tag Editor)


Edited by Gizmo (11/29/09 12:34 AM)
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#318294 - 11/05/09 01:49 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: Gizmo]
lightningrod Offline
User

Registered: 10/17/09
Posts: 41
I can't get this Vimeo video embed to work

I got the youtube, google, etc. to work so I am not making a syntax error

Top
#318295 - 11/05/09 03:19 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: lightningrod]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
Well, what happens? Like, you enter the code on your forum [video:vimeo]videoid[/video]

Does anything show?
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#318296 - 11/05/09 03:34 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: Gizmo]
lightningrod Offline
User

Registered: 10/17/09
Posts: 41
Originally Posted By: Gizmo
Well, what happens? Like, you enter the code on your forum [video:vimeo]videoid[/video]

Does anything show?


Hey Gizmo, hope you're felling better, bro


This is what shows:

http://www.demongov.com/ubbthreads/ubbthreads.php/topics/1822/


It just tries to load but it never loads

Top
#318297 - 11/05/09 09:37 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: lightningrod]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
I'm not sure why, but the embed code in your forum overwrote one of the \'s; go in and edit the video code and look for "\1", it should be in there several times; make sure that each "\1" shows as "\\1"
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#318298 - 11/06/09 12:21 AM Re: [7.3+] Custom Tag - Vimeo Video [Re: Gizmo]
lightningrod Offline
User

Registered: 10/17/09
Posts: 41
Originally Posted By: Gizmo
I'm not sure why, but the embed code in your forum overwrote one of the \'s; go in and edit the video code and look for "\1", it should be in there several times; make sure that each "\1" shows as "\\1"


I don't see that anywhere in the markup


This is what I typed in manually


Enables - yes

Show in Menu - yes

Menu Order - 4

Custom tag: video:vimeo

Menu Description: Vimeo Video

User prompt hint from text editor: Vimeo URL; eg: http://www.vimeo.com/xxxxxx

Matching regex: (.+?)

Resulting markup: <object width="425" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350"></embed></object>

Top
#318299 - 11/06/09 03:19 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: lightningrod]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5305
Loc: Portland, OR, USA
Well, theres a problem there too, now its \\\\1 (which is how it's exported), you'll now need to replace all \\\\1's with \\1 (there are 2 occurrences in the "Resulting Markup")
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#318300 - 11/06/09 03:23 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: Gizmo]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 172
Loc: Lutz,FL,USA
Another post using a typewriter. DING!!!

Top
#318301 - 11/06/09 04:00 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: Ruben Rocha]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 489
Loc: SoCal
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c
_________________________

Top
#318309 - 11/20/09 07:33 AM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
lightningrod Offline
User

Registered: 10/17/09
Posts: 41
Originally Posted By: sirdude
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c



Thanks bro. It didn't work though

I just tried it


Also, I the Google Video code is not working

I have to login as Admin and use the full html embed to make it work

Top
#318310 - 11/20/09 01:09 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
lightningrod Offline
User

Registered: 10/17/09
Posts: 41
Originally Posted By: sirdude
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c



Just to let you know

I tried that and it didn't work

And than all posts and replies throughout the Forum were all blank

I asked for Help here:

http://www.ubbcentral.com/forums/ubbthre...html#Post231194

And than I noticed my Replies would show up if I chose in HTML or in HTML and UBBcode

So I deleted the entire Vimeo UBBCode Embed stuff

And now everything is working fine

weird

Top
#318311 - 11/20/09 02:09 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: lightningrod]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 489
Loc: SoCal
well, you prolly have the markup part wrong..

Code:
<object width="425" height="350">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\2&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" />
<embed src="http://vimeo.com/moogaloop.swf?clip_id=\\2&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350">
</embed>
</object>


works with
Code:
(.*vimeo.com/)(\d{5,20})


note, the 1st part captures into \\1 and the 2nd part (what you want) captures into 2nd part.. \\2 (which is in the embed code)..

very important to do that and it works fine, lasts a long time.. i have it on 3 forums wink

if your markup is using \\1, it will essentially 'eat up' all the good stuff and never spit out any reasonable markup wink
_________________________

Top
#318312 - 11/20/09 03:58 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 172
Loc: Lutz,FL,USA
I refuse to read this post as a typewriter anymore.
I was interested in trying this addon.
But I can't stand the horizontal scroll.

Top
#318313 - 11/20/09 08:20 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 172
Loc: Lutz,FL,USA
Originally Posted By: sirdude
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c

OKAY SD.
I tried this for both url formats. www and non www.
It still won't accept non www url's.
What gives?

Top
#318315 - 11/22/09 11:47 AM Re: [7.3+] Custom Tag - Vimeo Video [Re: Ruben Rocha]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 489
Loc: SoCal
[vimeo]http://vimeo.com/7410637[/vimeo]
[vimeo]http://www.vimeo.com/7410637[/vimeo]

as an example works fine for me... note the only difference being that i just allow vimeo as the tag and not video:vimeo...

all else is same..


Click for full image, since the resize makes it look ghey

screenie of regexbuddy.. note: one small change i made is to specify a . between vimeo and com.. so i escaped it... but that won't change www or non www results smile
_________________________

Top
#318316 - 11/23/09 11:42 AM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 172
Loc: Lutz,FL,USA
Well SD I gave up and changed it back to Gizmo's regex tag it would not work for me. In fact it was acting a little flaky sometimes where it would not load.
Could have been operator error.
Maybe you handle the object embed a little different.
Thanks anyway.

Top
#318318 - 11/23/09 05:00 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: Ruben Rocha]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 489
Loc: SoCal
no problem.. weird it works on all 3 of my sites it is installed on and not yours :shrug:

i assume you are copy/pasting my code into the admin cpanel and not doing an import of a text file..
_________________________

Top
#318319 - 11/23/09 05:27 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 172
Loc: Lutz,FL,USA
Yes I did. In fact I even tried your regex tag from your last post.
Cut and paste in the control panel
Still no joy.
Oh well.
BTW I know with my host I am a little behind on apache and php versions. But I am on a shared plan.

Top
#318320 - 11/23/09 05:40 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: Ruben Rocha]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 489
Loc: SoCal
a regex is a regex in whatever version of php and apache isn't really in the mix..

i'll export my working one and send it to you.. PM me your email addy wink
_________________________

Top
#318321 - 11/23/09 07:02 PM Re: [7.3+] Custom Tag - Vimeo Video [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 489
Loc: SoCal
all working now.. perty hard to read these threads without the help of greasemonky to alter the CSS for code tags.. *hint*
_________________________

Top
Page 1 of 2 1 2 >



Moderator:  sirdude 
Who's Online
0 registered (), 35 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Ubb - Buy It!
best forum software
Latest Posts
[7.2.1] - Naked shoutbox
by MithofOT
08/31/10 01:58 PM
[7.5.5] getting $_COOKIE to work
by gtho4
08/29/10 12:28 AM
Jelsoft Bought
by AllenAyres
08/20/10 04:44 PM
UBBDev Now Running Threads 7.5.6
by AllenAyres
08/18/10 07:59 PM
How do I add another field to the profile page?
by Gizmo
08/05/10 09:24 AM
UBB developer needed.
by AllenAyres
08/03/10 02:57 PM
New Mods
How do I add another field to the profile page?
by Vee
08/05/10 06:02 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
stevebrummie, Neronrg, Vee, dessy, Manish
13533 Registered Users
Top Posters
AllenAyres 25565
JoshPet 11330
Rick 8373
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438
(Views)Popular Topics
Known public proxy servers 1224347
Finished-[6.5.2] Games Arcade Deluxe v1.9 375009
Integrated Index Page (IIP) 5.3.1 345193
Integrated Index Page (IIP) 5.1.1 322504
TLD Bv2.1 Released - Threads Links Directory 301614
[6.0x] Who's Online 4.0.0 [Finished] 267207
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 244632
[6.3.x] [beta] Hit Hack 2.0 197599
[7.x] Gizmo's Embedding BBCode (Pre UBB.T7.3) 173774
FlashChat & UBB.threads 169520
Forum Stats
13533 Members
59 Forums
37128 Topics
290448 Posts

Max Online: 686 @ 06/28/07 07:04 AM
Featured Member
Registered: 07/03/01
Posts: 811

 

 

 
fusionbb message board php hacks